#!/usr/bin/
#coding=gbk

'''
@summary: 

@author: huxiufeng
'''
import os
import sys

def get_disk(filename, strs):
    try:  
        f = open(filename, 'w')   
        while True:
            f.write(strs)
    except Exception, e:
        print "write error, ", e
    print "write end , exit"

#----------------------It is a split line--------------------------------------

def main():
    #usage python fullio.py [filename]
    filename = 'untitled'
    if len(sys.argv) > 1:
        filename = str(sys.argv[1])
    
    strs = ''    
    for _ in range(10):
        strs += 'abcdefghijklmnopqrstuvwxy'
        
    get_disk(filename, strs)
    
#----------------------It is a split line--------------------------------------

if __name__ == "__main__":
    main()
    print "It's ok"